package userController;


import java.io.IOException;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Scene;
import javafx.scene.layout.Pane;
import javafx.stage.Stage;


public class Main extends Application {
	
	@Override
	public void start(Stage primaryStage) throws IOException {
		// Change 1 : Included Stage MainStage = new Stage(StageStyle.TRANSPARENT); to remove the side options
        FXMLLoader myLoader = new  FXMLLoader(getClass().getResource("/userManagementUI/LoginPage.fxml"));
        Stage MainStage = new Stage();
        Pane MainPagePane = (Pane)myLoader.load();
        LoginController controller = (LoginController) myLoader.getController();
        controller.SetStage(MainStage);       
       // stage.setTitle("Login");
        Scene myScene = new Scene(MainPagePane);        
        MainStage.setScene(myScene);
        MainStage.setTitle("SUPERRENT");
        MainStage.setResizable(false);
       // MainStage.setWidth(605);
       // MainStage.setHeight(445);
        MainStage.show();
       
        /*
        Parent root = FXMLLoader.load(getClass().getResource("MainPage.fxml"));
        Scene scene = new Scene(root);
        stage.setTitle("SuperRent CRS - Login");
        stage.setScene(scene);
        stage.show(); */
	}

	public static void main(String[] args) {
		launch(args);
	}
	
	}
